Skip to content

Commit

Permalink
interfaces: fcitx also listens on the session bus for Qt apps (LP: #1…
Browse files Browse the repository at this point in the history
…634089) (#2287)
  • Loading branch information
jdstrand committed Nov 18, 2016
1 parent 96c8379 commit 5b151ae
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions interfaces/builtin/unity7.go
Expand Up @@ -108,22 +108,22 @@ owner @{HOME}/.config/fcitx/dbus/* r,
# allow creating an input context
dbus send
bus=fcitx
bus={fcitx,session}
path=/inputmethod
interface=org.fcitx.Fcitx.InputMethod
member=CreateIC*
peer=(label=unconfined),
# allow setting up and tearing down the input context
dbus send
bus=fcitx
bus={fcitx,session}
path=/inputcontext_[0-9]*
interface=org.fcitx.Fcitx.InputContext
member="{Close,Destroy,Enable}IC"
peer=(label=unconfined),
dbus send
bus=fcitx
bus={fcitx,session}
path=/inputcontext_[0-9]*
interface=org.fcitx.Fcitx.InputContext
member=Reset
Expand All @@ -134,16 +134,21 @@ dbus receive
bus=fcitx
peer=(label=unconfined),
dbus receive
bus=session
interface=org.fcitx.Fcitx.*
peer=(label=unconfined),
# use the input context
dbus send
bus=fcitx
bus={fcitx,session}
path=/inputcontext_[0-9]*
interface=org.fcitx.Fcitx.InputContext
member="Focus{In,Out}"
peer=(label=unconfined),
dbus send
bus=fcitx
bus={fcitx,session}
path=/inputcontext_[0-9]*
interface=org.fcitx.Fcitx.InputContext
member="{CommitPreedit,Set*}"
Expand All @@ -153,7 +158,7 @@ dbus send
# context path were tied to the process' security label, this would not be an
# issue.
dbus send
bus=fcitx
bus={fcitx,session}
path=/inputcontext_[0-9]*
interface=org.fcitx.Fcitx.InputContext
member="{MouseEvent,ProcessKeyEvent}"
Expand All @@ -164,7 +169,7 @@ dbus send
# again, could be avoided if the path were tied to the process' security
# label).
dbus send
bus=fcitx
bus={fcitx,session}
path=/inputcontext_[0-9]*
interface=org.freedesktop.DBus.Properties
member=GetAll
Expand Down

0 comments on commit 5b151ae

Please sign in to comment.